package com.seari.tunnel.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seari.tunnel.entity.SettlementHistory;
import com.seari.tunnel.mapper.SettlementHistoryMapper;
import com.seari.tunnel.service.ISubsidenceMonitorService;

@Service(ISubsidenceMonitorService.SERVICE_NAME)
public class SubsidenceMonitorServiceImpl implements ISubsidenceMonitorService{
	@Autowired
	SettlementHistoryMapper settlementHistoryMapper;

	@Override
	public List<SettlementHistory> findSettlement(String date) {
		String startTime = date+" 00:00:00";
		String endTime = date+" 23:59:59";
		return settlementHistoryMapper.findSettlement(startTime, endTime);
	}

	@Override
	public List<SettlementHistory> findPointInfo(String point, String date) {
		String startTime = date+" 00:00:00";
		String endTime = date+" 23:59:59"; 
		return settlementHistoryMapper.findPointInfo(point, startTime, endTime);
	}
	
	
}
